****Step 1: Move files into results folder
global savedfiles = "$BS_fold/local1/final/"

foreach lfile in bs_decomposition_SS_ProdR_new_kl bs_decomposition_SS_ProdR_new_kl_mp bs_firm_SS_ProdR_new_kl_allobs bsi_decomposition_SS_ProdR_new_kl bsiwage_decomposition_SS_ProdR_new_kl bs_welfare {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}


global savedfiles = "$BS_fold/local2/final/"

foreach lfile in bs_decomposition_SS_ProdQ_new_klme_TFPQIV bs_decomposition_SS_ProdQ_new_klme_TFPQIV_mp bs_decomposition_SS_ProdQ_new_klme_TFPQIV_rshare bs_decomposition_SS_ProdQ_new_klme_TFPQIV_rshare_mp bs_firm_SS_ProdQ_new_klme_TFPQIV_allobs  {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}


global savedfiles = "$BS_fold/local3/final/"

foreach lfile in bs_decomposition_SS_CS_kl_OPF bs_decomposition_SS_CS_kl_nic2 bs_decomposition_SS_CS_kl_nic4  {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}


global savedfiles = "$BS_fold/local4/final/"

foreach lfile in bs_decomposition_SS_CS_kl_by_year bs_decomposition_SS_CS_kl_nic2_by_year {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}


global savedfiles = "$BS_fold/local5/final/"

foreach lfile in bs_decomposition_SS_ProdR_new_kl_3lags {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}

global savedfiles = "$BS_fold/local6/final/"

foreach lfile in bs_decomposition_SS_ProdQ_new_klme_TFPQIV_2lags {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}


global savedfiles = "$BS_fold/local7/final/"

foreach lfile in bs_decomposition_SS_ProdQ_new_kl {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}


global savedfiles = "$BS_fold/local8/final/"

foreach lfile in bs_decomposition_SS_CS_klme_OPF bs_decomposition_SS_CS_klme_nic2 bs_decomposition_SS_CS_klme_nic4 {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}


global savedfiles = "$BS_fold/local9/final/"

foreach lfile in bs_decomposition_SS_CS_klme_by_year bs_decomposition_SS_CS_klme_nic2_by_year {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}

global savedfiles = "$BS_fold/local10/final/"

foreach lfile in bs_decomposition_SS_ProdQ_new_klm {
	
	clear
	use "$savedfiles//`lfile'", clear
	save "$results_fold//`lfile'", replace

}

